package com.ztesoft.web.filecommon.db.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.ztesoft.web.filecommon.db.arg.XpathVariantRelArg;
import com.ztesoft.web.filecommon.db.po.XpathVariantRelPO;

public interface IXpathVariantRelMapper {

	List<Integer> countByArg(XpathVariantRelArg arg);

	List<XpathVariantRelPO> selectByArg(XpathVariantRelArg arg);

	XpathVariantRelPO selectByPrimaryKey(Integer id);
	
	List<XpathVariantRelPO> selectPOByDirOrder(@Param("sourceDataId") Integer sourceDataId, @Param("dataType") Integer dataType, @Param("dirOrder") Integer dirOrder);

	List<XpathVariantRelPO> selectByArgAndPage(XpathVariantRelArg arg, RowBounds rowBound);

	int insert(XpathVariantRelPO record);

	int insertSelective(XpathVariantRelPO record);

	int insertBatch(@Param("list") List<XpathVariantRelPO> records);

	int updateByArgSelective(@Param("record") XpathVariantRelPO record, @Param("arg") XpathVariantRelArg arg);

	int updateByArg(@Param("record") XpathVariantRelPO record, @Param("arg") XpathVariantRelArg arg);

	int updateByPrimaryKeySelective(XpathVariantRelPO record);

	int updateByPrimaryKey(XpathVariantRelPO record);

	int deleteByArg(XpathVariantRelArg arg);

	int updataTo00A(XpathVariantRelArg arg);

	int deleteByPrimaryKey(Integer id);

}